package com.erp.erp_ui.information.req;

import com.erp.erp_ui.warehouse.req.AnnexReq;

import java.util.List;

/**
 * @ClassName : AnnexAddReq
 * @Description : 附件新增入参实体
 * @Author : lst
 * @Date: 2021-05-28 05:04
 */
public class AnnexAddReq {
    /**
     * 附件对应主表id
     */
    private Integer id;
    /**
     * 业务模块(与ModuleTypeEnum枚举类id一致)
     */
    private Integer type;

    /**
     * 被删除的老的附件id集合
     */
    private List<Integer> deleteAnnexIds;

    /**
     * 附件集合
     */
    private List<AnnexReq> annexList;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public List<Integer> getDeleteAnnexIds() {
        return deleteAnnexIds;
    }

    public void setDeleteAnnexIds(List<Integer> deleteAnnexIds) {
        this.deleteAnnexIds = deleteAnnexIds;
    }

    public List<AnnexReq> getAnnexList() {
        return annexList;
    }

    public void setAnnexList(List<AnnexReq> annexList) {
        this.annexList = annexList;
    }

    /**
     * 重写toString
     */
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("AnnexAddReq").append('[')
                .append("id=")
                .append(id)
                .append(",type=")
                .append(type)
                .append(",deleteAnnexIds=")
                .append(deleteAnnexIds)
                .append(",annexList=")
                .append(annexList)
                .append(']');
        return sb.toString();
    }
}
